import http from "@/http"

export default {

    select: {
        name: "货架查询",
        url: "/api/shelf",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },
    insert: {
        name: "货架新增",
        url: "/api/shelf",
        call: async function (params: any = {}) {
            return await http.post(this.url, params)
        }
    },

    update: {
        name: "货架修改",
        url: "/api/shelf",
        call: async function (params: any = {}) {
            return await http.put(this.url, params)
        }
    },
    delete: {
        name: "货架删除",
        url: "/api/shelf",
        call: async function (params: any = {}) {
            return await http.delete(this.url, params)
        }
    },
    select_wh2_shelf: {
        name: "查询仓库2货架",
        url: "/api/shelf/wh2shelf",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    }




}